xend: pci: fix a typo in do_Dstate_transition
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 29 Jul 2009 08:19:30 +0000 (09:19 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 29 Jul 2009 08:19:30 +0000 (09:19 +0100)
Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
tools/python/xen/util/pci.py

index 55077e5c1b2dda9616e2a40e7525f43bbf461d1d..3ca755c67b5ba72bc1c87642b80d7ab843248a31 100644 (file)
@@ -730,7 +730,7 @@ class PciDevice:
         # devices transitioning from D3hot to D0 because of
         # PowerState commands do not perform an internal reset.
         pm_ctl = self.pci_conf_read32(pos + PCI_PM_CTRL)
-        if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == 1:
+        if (pm_ctl & PCI_PM_CTRL_NO_SOFT_RESET) == PCI_PM_CTRL_NO_SOFT_RESET:
             return False
 
         (pci_list, cfg_list) = save_pci_conf_space([self.name])